package cn.timelost.hr.service;

import cn.timelost.hr.pojo.Attendanceout;
import cn.timelost.hr.pojo.Attendanceout2;
import cn.timelost.hr.vo.UnAttendanceoutVo;
import cn.timelost.hr.vo.input.AttendanceoutForm;
import com.github.pagehelper.PageInfo;
import org.springframework.cache.annotation.CacheEvict;

import java.sql.Date;
import java.util.List;

public interface AttendanceoutService {

    PageInfo<UnAttendanceoutVo> findUnAttendanceoutAll(int pageNum, int pageSize);

    PageInfo<Attendanceout> findAll(int pageNum, int pageSize, int personalId, Date beginDate, Date endDate);
    List<Attendanceout> all();
    Attendanceout find(int id);

    Attendanceout signUp(int personalId);
    Attendanceout signUp(AttendanceoutForm attendanceoutForm);

    public List<Attendanceout2> allView();
    public PageInfo<Attendanceout2> findAllView(int pageNum, int pageSize, int personalId, Date beginDate, Date endDate);

    void signUpUn(Integer personalId);
}
